Skip to content

Conversation

@aleiva17
Copy link

This PR adds support for the InterruptionLevel field in iOS push notifications, enabling fine-grained control over notification delivery timing and importance on iOS 15+.

  1. Added InterruptionLevel field to the Aps struct with JSON marshaling support
  2. Introduced InterruptionLevel type with four predefined constants:
    • InterruptionLevelActive: Immediate delivery with screen wake and sound
    • InterruptionLevelCritical: Immediate delivery with sound, bypasses mute switch
    • InterruptionLevelPassive: Silent delivery to notification center
    • InterruptionLevelTimeSensitive: Immediate delivery with highest priority, breaks through notification controls

@google-cla
Copy link

google-cla bot commented Nov 27, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@aleiva17 aleiva17 closed this Nov 28, 2025
@aleiva17 aleiva17 deleted the feature/apns-payload-interruption-level branch November 28, 2025 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants